//
//  NSObject+KVO.h
//  DreamOf
//
//  Created by 薛小刚 on 2018/5/2.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^listionAction)(NSString *keyPath, id object, NSDictionary<NSKeyValueChangeKey,id> *dictionaary);

@interface NSObject (KVO)

@property (nonatomic, copy)listionAction action;
@property (nonatomic, copy) NSString * keyPath;
- (void)xxgAddObserver:(nonnull NSObject *) object forKeyPath:(nonnull NSString *)keyPath options:(NSKeyValueObservingOptions)option context:(nullable void *)context andAction:(listionAction)actions;

@end
